from django.conf.urls.defaults import *
import settings

urlpatterns = patterns('nanaze.blog.views',
 # Uncomment this for admin:

    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^$', 'index'),
    (r'^rss/$', 'rss'),
    (r'^atom/$', 'atom'),
    (r'^about/$', 'about'),                       
    (r'^(\d{4})/$', 'entry_filter'),
    (r'^(\d{4})/(\d{2})/$', 'entry_filter'),
    (r'^(\d{4})/(\d{2})/(\d+)/$', 'entry_filter'),
    (r'^(\d{4})/(\d{2})/(\d+)/([\w\-]+)/$', 'entry_filter', 
     {"show_comments" : True})
)

if settings.DEVELOPMENT_MODE:
    urlpatterns += patterns('django.views.static',
        (r'^static/(?P<path>.*)$', 'serve', 
          {'document_root': settings.STATIC_PATH}),
			    )
